package com.bt.springboot.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author zkx
 * @Date 2024/1/29 17:14
 */
@Slf4j
@Component
public class UserTask {

	@Async("asyncTaskExecutor")
	public void getUserInfo(Long userId){
		log.info("当前线程：{}", Thread.currentThread().getName());
		log.info("获取用户Id为{}的信息：", userId);
	}
}
